import request from '@/utils/request'

// 获取路由
export function getPermissionPath(data) {
  return request({
    url: '/sys/path/getPermissionPath',
    method: 'post',
    data
  })
}
export function updatePermissionPath(data) {
  return request({
    url: '/sys/path/updatePermissionPath',
    method: 'put',
    data
  })
}
export function getPermissionPathById(id) {
  return request({
    url: '/sys/path/getPermissionPathById',
    method: 'get',
    params: { id: id }
  })
}

export function addPermissionPath(data) {
  return request({
    url: '/sys/path/addPermissionPath',
    method: 'post',
    data
  })
}
export function getPermissionCode() {
  return request({
    url: '/sys/permission/getPermissionCode',
    method: 'get'
  })
}
